home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / mosmllib / OS.sig < prev    next >
Encoding:
Text File  |  1996-07-03  |  912 b   |  29 lines  |  [TEXT/R*ch]

  1. (* OS -- SML Standard Library *)
  2.  
  3. val osInfo : unit -> {
  4.         archFamily : string,
  5.         archName   : string,
  6.         osName     : string,
  7.         osVersion  : string
  8.       }
  9.  
  10. type syserror
  11.  
  12. exception SysErr of string * syserror option
  13.  
  14. val errorMsg : syserror -> string
  15.  
  16. (*  Various functions for interacting with the operating system.
  17.  
  18.    [osInfo ()] returns a record describing the platform on which the
  19.    program is running.  With Moscow ML, the field archFamily will
  20.    always be "interp".  The field archName is a name for the actual
  21.    (physical) processor type (e.g. "i486"), and the fields osName and
  22.    osVersion contain the name and version of the operating system
  23.    (e.g. "Linux" and "1.1.61").  
  24.  
  25.    [errorMsg err] returns a string explaining the error message system
  26.    error code err, as found in a SysErr exception.  The precise form
  27.    of the strings are operating system dependent.  
  28. *)
  29.